package com.yami.shop.payment.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.core.annotation.Order;

/**
 * 商城支付项的支付成功和退款成功事件
 */
@Order(500)
public class PaymentEvent extends ApplicationEvent {
    private static final long serialVersionUID = 1L;

    private final String orderId;
    private final Integer type;//0:支付成功 1:退款成功
    private final String passbackParams; //回传参数
    private final String actionMoney; //支付或退款金额

    public PaymentEvent(Object source, String orderId, Integer type, String passbackParams,String actionMoney) {
        super(source);
        this.orderId=orderId;
        this.type=type;
        this.passbackParams=passbackParams;
        this.actionMoney=actionMoney;
    }
    public String getOrderId() {
        return this.orderId;
    }
    public Integer getType() {
        return this.type;
    }
    public String getPassbackParams() {
        return this.passbackParams;
    }
    public String getActionMoney() {
        return this.actionMoney;
    }
}
